#ifndef LAYER_H
#define LAYER_H

#include <list>
#include <string>
#include "../app/system/systemconfig.h"

using namespace std;
struct ScanArea
{
    /// <summary>
    /// 扫描速度
    /// </summary>
    double speed;
    /// <summary>
    /// 激光功率
    /// </summary>
    double power;
    /// <summary>
    /// 线段数量
    /// </summary>
    unsigned int linesConut;
};

class Layer
{
public:
    Layer();
public:
    static unsigned int totalLineConut;
    float zPos{0};
    int nNum{0};
    // 预计扫描耗时ms
    unsigned int nElst{0};
    // 实际扫描耗时ms
    unsigned int nMs{0};

    /// <summary>
    /// CliAscii Hatches 数据索引
    /// </summary>
    list<int> indexData{NULL};
    /// <summary>
    /// 显示XDB数据打开的id
    /// </summary>
    static int idXdb;
    /// <summary>
    /// 保存上一层采用的工艺参数设置
    /// </summary>
    //static SLMSettings lastSettings;
    /// <summary>
    /// 层扫描设置, 如果为Null, 采用last的设置
    /// </summary>
    //SLMSettings settings;
    /// <summary>
    /// 记录修改过的设置，方便编辑
    /// </summary>
    list<string> settingsChanged;

};

#endif // LAYER_H
